package com.heima.DIYMySpring.entity;

import com.heima.DIYMySpring.annotaitons.Autowired;
import com.heima.DIYMySpring.annotaitons.Component;
import com.heima.DIYMySpring.annotaitons.Qualifier;
import com.heima.DIYMySpring.annotaitons.Value;
import lombok.Data;

/**
 * @Author: Ethan Yankang
 * @Program: SpringBilibili
 * @Date: 2024-09-02 17:46
 **/
@Data
@Component
public class Order {
    @Value("XXX123")
    private String orderId;
    @Value("1000.1")
    private Float price;
    @Autowired
    //@Qualifier("MyAccount")
    private Account account;
}
